﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Liber;
using Liber.WEB;

namespace FlashQ.Main
{
    [Route("dvc/washer/[action]")]
    public class WasherController : LiberController
    {
        public JsonResult Info()
        {
            //设备详细状态(通用状态在设备统一管理接口中)
            DyObject dvcState = new DyObject();
            dvcState.Set("Status", BizObjStatus.Active);

            //产品和服务
            List<DyObject> goods = new List<DyObject>();
            goods.Add(new DyObject().Set("name", "快速洗").Set("price", 5.0));
            
            //其他内容
            
            return Json(FnResult<DyObject>.Sucess(dvcState.Set("Goods",goods)));
        }
    }
}